

// Qt
#include <QtCore>
#include <QtGui>

// GMQtExt
#include <glwidget/glwidget.h>

// Local
#include "mainwindow.h"


int main(int argc, char *argv[]) {

  // Initialize the Qt Application
  QApplication a(argc, argv);

  // Create a QMainWindow
  MainWindow *window = new MainWindow();
  window->setGeometry( 50, 50, 1100, 600 );
  window->setWindowState( Qt::WindowMaximized );

  // Make the GUI elements visual and initialize the OpenGL context
  window->show();

  // After context creation initialize the scene
  window->initScene();

  // Destroy app on lastWindowClosed
  a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );

  // Start the app, and return control to the Qt system.
  return a.exec();
}


